-
Notifications
You must be signed in to change notification settings - Fork 619
[Dashboard] Migrate MarkdownRenderer to shadcn+tailwind #5502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dashboard] Migrate MarkdownRenderer to shadcn+tailwind #5502
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
| }> = ({ | ||
| markdownText, | ||
| className, | ||
| disableCodeHighlight: disableCodeHightlight, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There appears to be a typo in the prop destructuring - disableCodeHightlight is missing an 'l'. The alias should be disableCodeHighlight: disableCodeHighlight.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good bot
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5502 +/- ##
=======================================
Coverage 44.09% 44.09%
=======================================
Files 1074 1074
Lines 55632 55632
Branches 3907 3907
=======================================
Hits 24533 24533
Misses 30416 30416
Partials 683 683
*This pull request uses carry forward flags. Click here to find out more.
|
size-limit report 📦
|
72b4a5e to
a8bca1b
Compare
Merge activity
|
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on enhancing the `MarkdownRenderer` component by updating its styling and structure, as well as adding comprehensive Storybook stories for better documentation and testing.
### Detailed summary
- Replaced padding props with a `className` in `MarkdownRenderer`.
- Updated styles for `inline-code` component.
- Added Storybook stories for `MarkdownRenderer`, including examples and parameters for desktop and mobile views.
- Improved the structure of the `MarkdownRenderer` component, including class-based styling and code highlighting features.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
a8bca1b to
adda60c
Compare

Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR focuses on updating the
MarkdownRenderercomponent and its associated styles, enhancing the rendering of Markdown content with improved class names and structure, while also adding Storybook stories for testing various configurations.Detailed summary
px,pt, andpbprops withclassNameinMarkdownRenderer.inline-codecomponent.MarkdownRendererwith multiple stories.MarkdownRendererto useReactMarkdowninstead ofchakrafor rendering.